package Week1.J0416;

import java.util.Scanner;

public class DeliveryOfNN {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        float weight = scanner.nextFloat()-1;
        String status = scanner.nextLine();
        int cost = 20;

        while (weight > 0) {
            cost++;
            weight--;
        }

        if (status.equals(" y")) {
            cost += 5;
        }

        System.out.println(cost);
    }
}
